import Vue from 'vue'
import VueRouter from 'vue-router'
import Mint from 'mint-ui';
import 'mint-ui/lib/style.css';

import Index from './index.vue'
import matchList from './views/matchList.vue'
import matchInfo from './views/matchInfo.vue'

Vue.use(VueRouter);
Vue.use(Mint);


Vue.config.productionTip = false

const routes = [
    { path: '/matchList', component: matchList },
    { path: '/matchInfo', component: matchInfo },
    { path: '*', redirect: '/matchList' }

]

const router = new VueRouter({
    routes
});

var app = new Vue({
    el: '#app',
    router,
    render: h => h(Index)
})